<div class="finder-detail">
	<form id="chgpw"  action="/desktop/users/changePassword">
		<input type="hidden"  name="userId"  value="<?php if(isset($userId)) echo $userId;?>" />
		<div class="tableform">
			<div style="cuevertical-align: middle" class="division">
				<table cellspacing="0" cellpadding="0" width="100%">
					<tbody>
				<tr>
					<th><em class="red">*</em>
						<label>旧密码：</label></th>
					<td><input type="password" id="dom_el_ea78c42" vtype="required" name="password" title="旧密码：" class="x-input " autocomplete="off"></td>
				</tr>
				<tr>
					<th><em class="red">*</em>
						<label>新密码：</label></th>
					<td><input type="password" id="dom_el_ea78c42" vtype="required" name="newPassword" title="新密码：" class="x-input " autocomplete="off"></td>
				</tr>
				<tr>
					<th><em class="red">*</em>
						<label>确认新密码：</label></th>
					<td><input type="password" id="dom_el_ea78c42" vtype="required" name="rePassword" title="确认密码：" class="x-input " autocomplete="off"></td>
				</tr>
			</tbody>
				</table>
			</div>
		</div>
	</form>
</div>
<!-----.mainFoot-----
<div class="table-action" >
	<button type="button"  id="savePw" class="btn"><span><span>保存</span></span></button>
</div>
-----.mainFoot----->
<script>
$('savePw').addEvent('click',function(e){
    e.stop();
    var _form=$('chgpw');
    _form.fireEvent('submit',e);
});

(function(){
    $('chgpw').store('target',{
        onComplete:function(ret){
        	var cmd = JSON.decode(ret);
        	if(cmd['success'] != null){
	        	$('chgpw').getParent('.dialog').retrieve('instance').close();
            }
        }
    });
})();
</script>